package com.ruoyi.constant;

/**
 * @program: ruoyi
 * @description: 外业核查状态
 * @author: xpq
 * @create: 2022-12-21 11:22
 **/
public enum RwZgwcqkEnum {
    SWZG(1, "尚未整改"),
    ZZZG(2, "正在整改"),
    YZG (3, "已整改");



    private Integer code;
    private String desc;

    RwZgwcqkEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwZgwcqkEnum value : RwZgwcqkEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }

}